package com.hy.main.handler;

import org.springframework.stereotype.Component;

@Component
/**
 * @Author yang DongYong
 * @Date 2023/3/2 - 03 - 02 - 20:46
 * @Description: com.hy.main.handler
 * @version: 1.0
 */
public class ZfbPayHandle extends AbstractHandle {
    @Override
    public void pay01(Integer payType) {
        System.out.println("支付宝支付调用1");
    }

    @Override
    public void pay03(Integer payType) {
        System.out.println("支付宝支付调用算法3");
    }

    @Override
    public void pay04(Integer payType) {
        System.out.println("支付宝支付调用算法4");
    }

    @Override
    public void pay05(Integer payType) {
        System.out.println("支付宝支付调用算法5");
    }

    @Override
    public void pay06(Integer payType) {
        System.out.println("支付宝支付调用算法6");
    }

    @Override
    public void pay07(Integer payType) {
        System.out.println("支付宝支付调用算法7");
    }


    @Override
    public void afterPropertiesSet() {
        StrategyFactory.register(0, this);
    }
}
